# -*- coding: utf-8 -*-

'''
Created on 01.06.2011

@author: Vlasov A. I. <root@proscript.ru>
'''
from django import template
from blog.models import Post

register = template.Library()

@register.inclusion_tag('blog/last_posts.html')
def last_posts():
    return { 'posts': Post.objects.all()[:10]}



